package product;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class MemberData implements Serializable{
	SimpleDateFormat sdf = new SimpleDateFormat("yy-MM-dd");

	String Code, Irum, Address, Email, Position, Team, Pwd, jDate, Jumin, Phone;
	int dPay=0;


	String holydate;
	String yholy,mholy;
	String reason;


	public MemberData(String Code,String Irum, String Address, String Email, String Position, String Team, String Pwd,	String Phone, String Jumin){
		this.Code=Code;//사원번호
		this.Irum=Irum;//성명
		this.Address=Address;//자택주소
		this.Email=Email;//이메일
		this.Position=Position;//직책
		this.Team=Team;//부서
		this.Pwd=Pwd;//비밀번호(관리자면 앞이 s로시작)
		this.Phone=Phone;//회사 직통 번호

		String nal = sdf.format(new Date());
		this.jDate=nal;//입사일
		this.Jumin=Jumin;//주민번호		
	}	

	

	public MemberData(String Code, String holydate, String yholy, String mholy, String reason){ 

		this.Code = Code; // 사원번호
		this.holydate = holydate; // 휴가날자(key)
		this.yholy = yholy; // 유급휴가종류(없음=0,월차=1,년차=2,생리=3,기타=4)
		this.mholy = mholy; // 무급휴가(사용,미사용)
		this.reason = reason; // 사유서(유급휴가 기타=4 일경우만)

	}




	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}


	public String getHolydate() {
		return holydate;
	}

	public void setHolydate(String holydate) {
		this.holydate = holydate;
	}

	public String getYholy() {
		return yholy;
	}

	public void setYholy(String yholy) {
		this.yholy = yholy;
	}

	public String getMholy() {
		return mholy;
	}

	public void setMholy(String mholy) {
		this.mholy = mholy;
	}

	public String getCode() {
		return Code;
	}

	public void setCode(String code) {
		Code = code;
	}

	public String getIrum() {
		return Irum;
	}

	public void setIrum(String irum) {
		Irum = irum;
	}

	public String getAddress() {
		return Address;
	}

	public void setAddress(String address) {
		Address = address;
	}

	public String getEmail() {
		return Email;
	}

	public void setEmail(String email) {
		Email = email;
	}

	public String getPosition() {
		return Position;
	}

	public void setPosition(String position) {
		Position = position;
	}

	public String getTeam() {
		return Team;
	}

	public void setTeam(String team) {
		Team = team;
	}

	public String getPwd() {
		return Pwd;
	}

	public void setPwd(String pwd) {
		Pwd = pwd;
	}

	public String getPhone() {
		return Phone;
	}

	public void setPhone(String phone) {
		Phone = phone;
	}

	public String getjDate() {
		return jDate;
	}

	public void setjDate(String jDate) {
		this.jDate = jDate;
	}

	public String getJumin() {
		return Jumin;
	}

	public void setJumin(String jumin) {
		Jumin = jumin;
	}

	public int getdPay() {
		return dPay;
	}

	public void setdPay(int dPay) {
		this.dPay = dPay;
	}



}
